Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vault-12308: Change password policy testing to be deterministic #20625

Merged
merged 6 commits into from
May 17, 2023

Conversation

rculpepper
Copy link
Contributor

This changes the password policy testing to attempt to construct a test password rather than generating random passwords and checking them against the rules. This stops Vault from erroring out on policies that are restrictive, but still possible.

@rculpepper rculpepper requested a review from a team May 17, 2023 14:01
@@ -13,6 +13,7 @@
"errors"
"fmt"
"hash"
"math/rand"

Check warning

Code scanning / Semgrep Scanner

Semgrep Finding: go.lang.security.audit.crypto.math_random.math-random-used

Do not use `math/rand`. Use `crypto/rand` instead.
@rculpepper rculpepper added this to the 1.14 milestone May 17, 2023
Copy link
Contributor

@victorr victorr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

vault/logical_system.go Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants